
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>3.2.2 Spinnaker · Ebook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="zq_sdk@163.com">
        
        
    
    <link rel="stylesheet" href="../../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-disqus/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-tree/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-local-video/video-js.min.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-ace/ace.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-katex/katex.min.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../build.html" />
    
    
    <link rel="prev" href="gitlab_ci.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"TIME-GATE/","types":["star","watch"],"size":"large"};
    </script>

    
    <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-chart/c3/c3.min.css">
    <script src="../../../gitbook/gitbook-plugin-chart/c3/d3.min.js"></script>
    <script src="../../../gitbook/gitbook-plugin-chart/c3/c3.min.js"></script>
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../../">
            
                <a href="../../../">
            
                    
                    简介
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../../../about_me.html">
            
                <a href="../../../about_me.html">
            
                    
                    关于
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="../../../gitbook_install.html">
            
                <a href="../../../gitbook_install.html">
            
                    
                    附:Gitbook安装
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../../">
            
                <a href="../../../">
            
                    
                    一 基础理论
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../../data_structure/">
            
                <a href="../../../data_structure/">
            
                    
                    1 数据结构
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1" data-path="../../../data_structure/11_linear_structure.html">
            
                <a href="../../../data_structure/11_linear_structure.html">
            
                    
                    1.1 数组、链表、跳表及字典
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1.1" data-path="../../../data_structure/111_array.html">
            
                <a href="../../../data_structure/111_array.html">
            
                    
                    1.1.1 数组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.1.2" data-path="../../../data_structure/112_link_list.html">
            
                <a href="../../../data_structure/112_link_list.html">
            
                    
                    1.1.2 链表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.1.3" data-path="../../../data_structure/113_skip_list.html">
            
                <a href="../../../data_structure/113_skip_list.html">
            
                    
                    1.1.3 跳表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.1.4" data-path="../../../data_structure/114_dictionary.html">
            
                <a href="../../../data_structure/114_dictionary.html">
            
                    
                    1.1.4 字典
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.1.2" data-path="../../../data_structure/12_stack_and_queue.html">
            
                <a href="../../../data_structure/12_stack_and_queue.html">
            
                    
                    1.2 栈、队列、散列及集合
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.2.1" data-path="../../../data_structure/121_stack.html">
            
                <a href="../../../data_structure/121_stack.html">
            
                    
                    1.2.1 栈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2.2" data-path="../../../data_structure/122_queue.html">
            
                <a href="../../../data_structure/122_queue.html">
            
                    
                    1.2.2 队列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2.3" data-path="../../../data_structure/123_hash.html">
            
                <a href="../../../data_structure/123_hash.html">
            
                    
                    1.2.3 散列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2.4" data-path="../../../data_structure/124_set.html">
            
                <a href="../../../data_structure/124_set.html">
            
                    
                    1.2.4 集合
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.1.3" data-path="../../../data_structure/13_tree_and_forest.html">
            
                <a href="../../../data_structure/13_tree_and_forest.html">
            
                    
                    1.3 树与森林
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.3.1" data-path="../../../data_structure/131.html">
            
                <a href="../../../data_structure/131.html">
            
                    
                    1.3.1 二叉搜索树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.3.2" data-path="../../../data_structure/132.html">
            
                <a href="../../../data_structure/132.html">
            
                    
                    1.3.2 红黑树
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.1.4" data-path="../../../data_structure/14_map.html">
            
                <a href="../../../data_structure/14_map.html">
            
                    
                    1.4 图结构
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.4.1" data-path="../../../data_structure/141_minimal_tree.html">
            
                <a href="../../../data_structure/141_minimal_tree.html">
            
                    
                    1.4.1 最小生成树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.4.2" data-path="../../../data_structure/142_single_source_shortest_path.html">
            
                <a href="../../../data_structure/142_single_source_shortest_path.html">
            
                    
                    1.4.2 单源最短路径
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.4.3" data-path="../../../data_structure/143_all_source_shortest_path.html">
            
                <a href="../../../data_structure/143_all_source_shortest_path.html">
            
                    
                    1.4.3 多源最短路径
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.4.4" data-path="../../../data_structure/144_max_stream.html">
            
                <a href="../../../data_structure/144_max_stream.html">
            
                    
                    1.4.4 最大流
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../../">
            
                <a href="../../../">
            
                    
                    2 基础算法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.1" data-path="../../../algorithm/21.html">
            
                <a href="../../../algorithm/21.html">
            
                    
                    2.1 排序查找
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.2" data-path="../../../algorithm/22.html">
            
                <a href="../../../algorithm/22.html">
            
                    
                    2.2 动态规划
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../../../algorithm/distributed_algorithm.html">
            
                <a href="../../../algorithm/distributed_algorithm.html">
            
                    
                    3 分布式算法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.3.1" data-path="../cs/theory.html">
            
                <a href="../cs/theory.html">
            
                    
                    3.1 一致性模式与理论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.2" data-path="../../../algorithm/raft.html">
            
                <a href="../../../algorithm/raft.html">
            
                    
                    3.2 Raft协议
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.3" data-path="../../../algorithm/paxos.html">
            
                <a href="../../../algorithm/paxos.html">
            
                    
                    3.3 Paxos协议
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.4" data-path="../../../algorithm/gossip.html">
            
                <a href="../../../algorithm/gossip.html">
            
                    
                    3.4 Gossip协议
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.5" data-path="../cs/plan.html">
            
                <a href="../cs/plan.html">
            
                    
                    3.5 几种一致性方案
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../../../optimization_se/">
            
                <a href="../../../optimization_se/">
            
                    
                    4 运筹及系统工程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.4.1" data-path="../../../optimization_se/linear_programming.html">
            
                <a href="../../../optimization_se/linear_programming.html">
            
                    
                    4.1 线性规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.2" data-path="../../../optimization_se/integer_programming.html">
            
                <a href="../../../optimization_se/integer_programming.html">
            
                    
                    4.2 整数规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.3" data-path="../../../optimization_se/目标规划.html">
            
                <a href="../../../optimization_se/目标规划.html">
            
                    
                    4.3 目标规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.4" data-path="../../../optimization_se/非线性规划.html">
            
                <a href="../../../optimization_se/非线性规划.html">
            
                    
                    4.4 非线性规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.5" data-path="../../../optimization_se/动态规划.html">
            
                <a href="../../../optimization_se/动态规划.html">
            
                    
                    4.5 动态规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.6" data-path="../../../optimization_se/排队论.html">
            
                <a href="../../../optimization_se/排队论.html">
            
                    
                    4.6 排队论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.7" data-path="../../../optimization_se/博弈论.html">
            
                <a href="../../../optimization_se/博弈论.html">
            
                    
                    4.7 博弈论
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    二 工程应用
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../design_pattern/">
            
                <a href="../../design_pattern/">
            
                    
                    1 设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="../../design_pattern/strategy.html">
            
                <a href="../../design_pattern/strategy.html">
            
                    
                    1.1 策略模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" data-path="../../design_pattern/prototype.html">
            
                <a href="../../design_pattern/prototype.html">
            
                    
                    1.2 原型模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.3" data-path="../../design_pattern/singleton.html">
            
                <a href="../../design_pattern/singleton.html">
            
                    
                    1.3 单例模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.4" data-path="../../design_pattern/factory.html">
            
                <a href="../../design_pattern/factory.html">
            
                    
                    1.4 工厂模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.5" data-path="../../design_pattern/bridge.html">
            
                <a href="../../design_pattern/bridge.html">
            
                    
                    1.5 桥接模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.6" data-path="../../design_pattern/composite.html">
            
                <a href="../../design_pattern/composite.html">
            
                    
                    1.6 组合模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.7" data-path="../../design_pattern/facade.html">
            
                <a href="../../design_pattern/facade.html">
            
                    
                    1.7 门面模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.8" data-path="../../design_pattern/adapter.html">
            
                <a href="../../design_pattern/adapter.html">
            
                    
                    1.8 适配器模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.9" data-path="../../design_pattern/decorator.html">
            
                <a href="../../design_pattern/decorator.html">
            
                    
                    1.9 装饰者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.10" data-path="../../design_pattern/flyweight.html">
            
                <a href="../../design_pattern/flyweight.html">
            
                    
                    1.10 享元模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.11" data-path="../../design_pattern/proxy.html">
            
                <a href="../../design_pattern/proxy.html">
            
                    
                    1.11 代理模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.12" data-path="../../design_pattern/middleware.html">
            
                <a href="../../design_pattern/middleware.html">
            
                    
                    1.12 中间件模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../../network_prag/">
            
                <a href="../../network_prag/">
            
                    
                    2 网络编程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.2.1" data-path="../../network_prag/socket.html">
            
                <a href="../../network_prag/socket.html">
            
                    
                    2.1 长连接
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.2" data-path="../../network_prag/mq.html">
            
                <a href="../../network_prag/mq.html">
            
                    
                    2.2 MQ
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../../../program/">
            
                <a href="../../../program/">
            
                    
                    3 语言应用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.1" data-path="../../../program/nodejs/node.html">
            
                <a href="../../../program/nodejs/node.html">
            
                    
                    3.1 Node.js
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.1.1" data-path="../../../program/nodejs/core.html">
            
                <a href="../../../program/nodejs/core.html">
            
                    
                    3.1.1 原理及构成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.2" data-path="../../../program/nodejs/async.html">
            
                <a href="../../../program/nodejs/async.html">
            
                    
                    3.1.2 异步机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.3" data-path="../../../program/nodejs/important.html">
            
                <a href="../../../program/nodejs/important.html">
            
                    
                    3.1.3 一些核心概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.4" data-path="../../../program/nodejs/koa_web.html">
            
                <a href="../../../program/nodejs/koa_web.html">
            
                    
                    3.1.4 web应用: koa框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.5" data-path="../../../program/nodejs/koa.html">
            
                <a href="../../../program/nodejs/koa.html">
            
                    
                    3.1.5 koa源码分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.6" data-path="../../../program/nodejs/libuv.html">
            
                <a href="../../../program/nodejs/libuv.html">
            
                    
                    3.1.6 libuv网络库应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.7" data-path="../../../program/nodejs/apm.html">
            
                <a href="../../../program/nodejs/apm.html">
            
                    
                    3.1.7 性能调优
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.8" data-path="../../../program/nodejs/node_spider.html">
            
                <a href="../../../program/nodejs/node_spider.html">
            
                    
                    3.1.8 其他: Node爬虫
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.9" data-path="../../../program/nodejs/node_map_reduce.html">
            
                <a href="../../../program/nodejs/node_map_reduce.html">
            
                    
                    3.1.9 其他: Node编写Mapreduce
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.3.2" data-path="../../../program/c/c_and_plus.html">
            
                <a href="../../../program/c/c_and_plus.html">
            
                    
                    3.2 C/C++
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.2.1" data-path="../../../program/c/oop.html">
            
                <a href="../../../program/c/oop.html">
            
                    
                    3.2.1 面向对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.2" data-path="../../../program/c/ipcs.html">
            
                <a href="../../../program/c/ipcs.html">
            
                    
                    3.2.2 进程通信
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.3" data-path="../../../program/c/thread.html">
            
                <a href="../../../program/c/thread.html">
            
                    
                    3.2.3 线程管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.4" data-path="../../../program/c/memory.html">
            
                <a href="../../../program/c/memory.html">
            
                    
                    3.2.4 内存管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.5" data-path="../../../program/c/network.html">
            
                <a href="../../../program/c/network.html">
            
                    
                    3.2.5 网络编程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.6" data-path="../../../program/c/build_tool.html">
            
                <a href="../../../program/c/build_tool.html">
            
                    
                    3.2.6 构建工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.7" data-path="../../../program/c/thread_pool.html">
            
                <a href="../../../program/c/thread_pool.html">
            
                    
                    3.2.7 其他: 线程池
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../">
            
                <a href="../">
            
                    
                    三 搭建部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../test.html">
            
                <a href="../test.html">
            
                    
                    3.1 测试
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1.1" data-path="../test/unit_testing.html">
            
                <a href="../test/unit_testing.html">
            
                    
                    3.1.1 单元测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.2" data-path="../test/stress_testing.html">
            
                <a href="../test/stress_testing.html">
            
                    
                    3.1.2 压力测试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../ci_readme.html">
            
                <a href="../ci_readme.html">
            
                    
                    3.2 集成
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.2.1" data-path="gitlab_ci.html">
            
                <a href="gitlab_ci.html">
            
                    
                    3.2.1 GitLab CI
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4.2.2" data-path="spinnaker.html">
            
                <a href="spinnaker.html">
            
                    
                    3.2.2 Spinnaker
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../build.html">
            
                <a href="../build.html">
            
                    
                    3.3 部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.3.1" data-path="../k8s/k8s.html">
            
                <a href="../k8s/k8s.html">
            
                    
                    3.3.1 k8s
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.2" data-path="../rancher/rancher.html">
            
                <a href="../rancher/rancher.html">
            
                    
                    3.3.2 rancher
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.3" data-path="../swarm/swarm.html">
            
                <a href="../swarm/swarm.html">
            
                    
                    3.3.3 swarm
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../maintenance.html">
            
                <a href="../maintenance.html">
            
                    
                    3.4 监控
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.1" data-path="../monitor.html">
            
                <a href="../monitor.html">
            
                    
                    3.4.1 容器监控
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2" data-path="../trace.html">
            
                <a href="../trace.html">
            
                    
                    3.4.2 系统监控
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3" data-path="../app1.md">
            
                <span>
            
                    
                    3.4.2 应用监控
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../../ha/ha.html">
            
                <a href="../../ha/ha.html">
            
                    
                    3.5 高可用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.5.1" data-path="../../ha/client.html">
            
                <a href="../../ha/client.html">
            
                    
                    3.5.1 接入层高可用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.2" data-path="../../ha/service.html">
            
                <a href="../../ha/service.html">
            
                    
                    3.5.2 服务层高可用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.3" data-path="../../ha/share.html">
            
                <a href="../../ha/share.html">
            
                    
                    3.5.3 存储层高可用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../hc/hc.html">
            
                <a href="../hc/hc.html">
            
                    
                    3.6 高并发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.6.1" data-path="../hc/dns.html">
            
                <a href="../hc/dns.html">
            
                    
                    3.6.1 基于DNS的负载均衡
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6.2" data-path="../hc/lvs.html">
            
                <a href="../hc/lvs.html">
            
                    
                    3.6.2 基于Lvs的负载均衡
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6.3" data-path="../hc/haproxy.html">
            
                <a href="../hc/haproxy.html">
            
                    
                    3.6.3 基于haproxy的负载均衡
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    四 架构模式
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" >
            
                <span>
            
                    
                    1 微服务架构设计与实践
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1.1" data-path="../../../program/java/spring-cloud.html">
            
                <a href="../../../program/java/spring-cloud.html">
            
                    
                    1.1 微服务概况
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.2" data-path="../../../program/java/spring-eureka.html">
            
                <a href="../../../program/java/spring-eureka.html">
            
                    
                    1.2 服务注册及发现
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.3" data-path="../../../program/java/spring-feign.html">
            
                <a href="../../../program/java/spring-feign.html">
            
                    
                    1.3 服务调用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.4" data-path="../../../program/java/spring-zuul.html">
            
                <a href="../../../program/java/spring-zuul.html">
            
                    
                    1.4 网关及负载均衡
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.5" data-path="../../../program/java/spring-hystrix.html">
            
                <a href="../../../program/java/spring-hystrix.html">
            
                    
                    1.5 熔断、限流、扩缩容
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.6" data-path="../../../program/java/spring-config.html">
            
                <a href="../../../program/java/spring-config.html">
            
                    
                    1.6 云配置中心
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.7" data-path="../../../program/java/zipkin-tracing.html">
            
                <a href="../../../program/java/zipkin-tracing.html">
            
                    
                    1.7 分布式链路追踪
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.8" data-path="../../../program/java/swagger.html">
            
                <a href="../../../program/java/swagger.html">
            
                    
                    1.8 接口文档管理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../../domain/">
            
                <a href="../../../domain/">
            
                    
                    2 领域驱动模型
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.2.1" data-path="../../../domain/domain.html">
            
                <a href="../../../domain/domain.html">
            
                    
                    2.1 领域--Domain
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.2" data-path="../../../domain/entity.md">
            
                <span>
            
                    
                    2.2 领域实体--Entity
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.3" data-path="../../../domain/object.html">
            
                <a href="../../../domain/object.html">
            
                    
                    2.3 值对象--Value Object
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.4" data-path="../../../domain/aggregate.html">
            
                <a href="../../../domain/aggregate.html">
            
                    
                    2.4 聚合--Aggregate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.5" data-path="../../../domain/service.html">
            
                <a href="../../../domain/service.html">
            
                    
                    2.5 服务--Services
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.6" data-path="../../../domain/event.html">
            
                <a href="../../../domain/event.html">
            
                    
                    2.6 领域事件--Event
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.7" data-path="../../../domain/framework.html">
            
                <a href="../../../domain/framework.html">
            
                    
                    2.7 几种常见的DDD架构
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.3" >
            
                <span>
            
                    
                    3 架构技术的演化与趋势
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.3.1" >
            
                <span>
            
                    
                    3.1 架构技术的发展历史及现状
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3.2" >
            
                <span>
            
                    
                    3.2 Serverless无服务架构概念
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3.3" >
            
                <span>
            
                    
                    3.3 ServerMesh网格服务概念
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    五 其他
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../../story/talk.html">
            
                <a href="../../../story/talk.html">
            
                    
                    5.1 小伙子,放松!
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../.." >3.2.2 Spinnaker</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="&#x4E00;&#x3001;&#x57FA;&#x4E8E;spinnaker&#x7684;k8s&#x6301;&#x7EED;&#x4EA4;&#x4ED8;&#x5E73;&#x53F0;">&#x4E00;&#x3001;&#x57FA;&#x4E8E;Spinnaker&#x7684;K8S&#x6301;&#x7EED;&#x4EA4;&#x4ED8;&#x5E73;&#x53F0;</h3>
<ul>
<li>1.1 &#x7B80;&#x4ECB;</li>
</ul>
<p>&#xA0;&#xA0;&#xA0;&#xA0;Kubernetes&#x3001;Docker&#x5DF2;&#x6210;&#x4E3A;&#x652F;&#x6491;&#x5FAE;&#x670D;&#x52A1;&#x7684;&#x9996;&#x9009;&#x5E73;&#x53F0;&#x7EC4;&#x5408;&#x3002;&#x4E3A;&#x4E86;&#x66F4;&#x597D;&#x5B9E;&#x73B0;DevOps&#x7B49;CI/CD&#x529F;&#x80FD;&#xFF0C;&#x8FD9;&#x91CC;&#x5206;&#x4EAB;Netflix&#x5F00;&#x6E90;&#x7684;Spinnaker&#x642D;&#x5EFA;&#x90E8;&#x7F72;&#x8FC7;&#x7A0B;&#xFF0C;Spinnaker&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x9879;&#x76EE;&#x7684;&#x5FEB;&#x901F;&#x4EA4;&#x4ED8;&#xFF0C;&#x5B8C;&#x6210;&#x670D;&#x52A1;&#x7684;&#x5FEB;&#x901F;&#x90E8;&#x7F72;&#x3001;&#x56DE;&#x6EDA;&#x3001;A/B&#x6D4B;&#x8BD5;&#x4EE5;&#x53CA;&#x91D1;&#x4E1D;&#x96C0;&#x7B49;&#x90E8;&#x7F72;&#x65B9;&#x5F0F;&#xFF0C;&#x56E0;&#x4E3A;&#x56FD;&#x5185;&#x7F51;&#x7EDC;&#x95EE;&#x9898;&#xFF0C;Spinnaker&#x7684;&#x90E8;&#x7F72;&#x6CA1;&#x6709;&#x60F3;&#x8C61;&#x7684;&#x987A;&#x5229;&#xFF0C;&#x6211;&#x4EEC;&#x4F1A;&#x63D0;&#x524D;&#x5C06;&#x5FC5;&#x8981;&#x7684;&#x955C;&#x50CF;&#x5305;push&#x5230;Docker Hub&#x3002;</p>
<ul>
<li>1.2 spinnaker&#x3001;gitlab-ci&#x7B49;&#x5BF9;&#x6BD4;</li>
</ul>
<table>
<thead>
<tr>
<th style="text-align:center">&#x5E8F;&#x53F7;</th>
<th style="text-align:center">&#x5BF9;&#x6BD4;&#x9879;</th>
<th style="text-align:center">spinnaker</th>
<th style="text-align:center">gitlab-ci</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">1</td>
<td style="text-align:center">&#x652F;&#x6301;&#x53D1;&#x5E03;&#x65B9;&#x5F0F;</td>
<td style="text-align:center">&#x6EDA;&#x52A8;&#x3001;A/B&#x3001;&#x91D1;&#x4E1D;&#x96C0;</td>
<td style="text-align:center">&#x6EDA;&#x52A8;</td>
</tr>
<tr>
<td style="text-align:center">2</td>
<td style="text-align:center">&#x652F;&#x6301;&#x4E91;&#x5E73;&#x53F0;</td>
<td style="text-align:center">k8s&#x3001;OpenStack&#x3001;Cloud Foundry</td>
<td style="text-align:center">&#x652F;&#x6301;&#x6709;&#x9650;</td>
</tr>
<tr>
<td style="text-align:center">3</td>
<td style="text-align:center">&#x81EA;&#x52A8;&#x5316;&#x7A0B;&#x5EA6;</td>
<td style="text-align:center">&#x4E00;&#x81F4;&#x4E14;&#x53EF;&#x9760;&#x7684; API &#xFF0C;&#x63D0;&#x4F9B;&#x53EF;&#x7F16;&#x7A0B;&#x914D;&#x7F6E;</td>
<td style="text-align:center">API&#x76F8;&#x5BF9;&#x8F83;&#x5C11;</td>
</tr>
<tr>
<td style="text-align:center">4</td>
<td style="text-align:center">&#x662F;&#x5426;&#x6709;&#x9274;&#x6743;</td>
<td style="text-align:center">Auth&#x3001;SAML&#x3001;LDAP&#x3001;GitHub teams&#x3001;Azure Groups</td>
<td style="text-align:center">&#x4F9D;&#x8D56;Gitlab</td>
</tr>
<tr>
<td style="text-align:center">5</td>
<td style="text-align:center">pipeline</td>
<td style="text-align:center">&#x7075;&#x6D3B;&#x548C;&#x53EF;&#x914D;&#x7F6E; Pipelines&#xFF0C;&#x5B9E;&#x73B0;&#x53EF;&#x91CD;&#x590D;&#x7684;&#x81EA;&#x52A8;&#x5316;&#x90E8;&#x7F72;</td>
<td style="text-align:center">&#x4F9D;&#x8D56;Gitlab</td>
</tr>
<tr>
<td style="text-align:center">6</td>
<td style="text-align:center">&#x67E5;&#x770B;&#x65B9;&#x5F0F;</td>
<td style="text-align:center">&#x72EC;&#x7ACB;&#x7684;UI&#xFF0C;&#x63D0;&#x4F9B;&#x6240;&#x6709;&#x73AF;&#x5883;&#x7684;&#x5168;&#x5C40;&#x89C6;&#x56FE;&#xFF0C;&#x53EF;&#x968F;&#x65F6;&#x67E5;&#x770B;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x5728;&#x5176;&#x90E8;&#x7F72; Pipeline &#x7684;&#x72B6;&#x6001;</td>
<td style="text-align:center">&#x4F9D;&#x8D56;Gitlab</td>
</tr>
</tbody>
</table>
<ul>
<li>1.3 Spinnaker&#x529F;&#x80FD;&#x7EC4;&#x4EF6;&#x4E0E;&#x6D41;&#x7A0B;</li>
</ul>
<p><img src="http://cdn.find-world.top/spinnaker-1.png" alt="CI&#x56FE;"></p>
<pre><code>  minio:        &#x5BF9;&#x8C61;&#x5B58;&#x50A8;&#xFF0C;&#x5B58;&#x50A8;spinnaker&#x9700;&#x8981;&#x6301;&#x4E45;&#x5316;&#x7684;&#x6570;&#x636E;
  redis:        &#x6570;&#x636E;&#x5B58;&#x50A8;&#xFF0C;front50, Clouddriver&#x3001;Fiat&#x7B49;&#x7EC4;&#x4EF6;&#x7684;&#x4E2D;&#x95F4;&#x6570;&#x636E;
  clouddriver:  &#x4E91;&#x9002;&#x914D;&#xFF0C;&#x5982;k8s&#x3001;OpenStack
  Deck:         &#x9762;&#x5411;&#x7528;&#x6237; UI &#x754C;&#x9762;&#x7EC4;&#x4EF6;&#xFF0C;&#x63D0;&#x4F9B;&#x76F4;&#x89C2;&#x7B80;&#x4ECB;&#x7684;&#x64CD;&#x4F5C;&#x754C;&#x9762;&#xFF0C;&#x53EF;&#x89C6;&#x5316;&#x64CD;&#x4F5C;&#x53D1;&#x5E03;&#x90E8;&#x7F72;&#x6D41;&#x7A0B;&#x3002;
  API:          &#x9762;&#x5411;&#x8C03;&#x7528; API &#x7EC4;&#x4EF6;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x4E0D;&#x4F7F;&#x7528;&#x63D0;&#x4F9B;&#x7684; UI&#xFF0C;&#x76F4;&#x63A5;&#x8C03;&#x7528; API &#x64CD;&#x4F5C;&#xFF0C;&#x7531;&#x5B83;&#x540E;&#x53F0;&#x5E2E;&#x6211;&#x4EEC;&#x6267;&#x884C;&#x53D1;&#x5E03;&#x7B49;&#x4EFB;&#x52A1;&#x3002;
  Gate:         &#x662F; API &#x7684;&#x7F51;&#x5173;&#x7EC4;&#x4EF6;&#xFF0C;&#x53EF;&#x4EE5;&#x7406;&#x89E3;&#x4E3A;&#x4EE3;&#x7406;&#xFF0C;&#x6240;&#x6709;&#x8BF7;&#x6C42;&#x7531;&#x5176;&#x4EE3;&#x7406;&#x8F6C;&#x53D1;&#x3002;
  Rosco:        &#x662F;&#x6784;&#x5EFA; beta &#x955C;&#x50CF;&#x7684;&#x7EC4;&#x4EF6;&#xFF0C;&#x9700;&#x8981;&#x914D;&#x7F6E; Packer &#x7EC4;&#x4EF6;&#x4F7F;&#x7528;&#x3002;
  Orca:         &#x662F;&#x6838;&#x5FC3;&#x6D41;&#x7A0B;&#x5F15;&#x64CE;&#x7EC4;&#x4EF6;&#xFF0C;&#x7528;&#x6765;&#x7BA1;&#x7406;&#x6D41;&#x7A0B;&#x3002;
  Igor:         &#x662F;&#x7528;&#x6765;&#x96C6;&#x6210;&#x5176;&#x4ED6; CI &#x7CFB;&#x7EDF;&#x7EC4;&#x4EF6;&#xFF0C;&#x5982; Jenkins &#x7B49;&#x4E00;&#x4E2A;&#x7EC4;&#x4EF6;&#x3002;
  Echo:         &#x662F;&#x901A;&#x77E5;&#x7CFB;&#x7EDF;&#x7EC4;&#x4EF6;&#xFF0C;&#x53D1;&#x9001;&#x90AE;&#x4EF6;&#x7B49;&#x4FE1;&#x606F;&#x3002;
  Front50:      &#x662F;&#x5B58;&#x50A8;&#x7BA1;&#x7406;&#x7EC4;&#x4EF6;&#xFF0C;&#x9700;&#x8981;&#x914D;&#x7F6E; Redis&#x3001;Cassandra &#x7B49;&#x7EC4;&#x4EF6;&#x4F7F;&#x7528;&#x3002;
  Cloud driver: &#x662F;&#x5B83;&#x7528;&#x6765;&#x9002;&#x914D;&#x4E0D;&#x540C;&#x7684;&#x4E91;&#x5E73;&#x53F0;&#x7684;&#x7EC4;&#x4EF6;&#xFF0C;&#x6BD4;&#x5982; Kubernetes&#xFF0C;Google&#x3001;AWS EC2&#x3001;Microsoft Azure&#x7B49;&#x3002;
  Fiat:         &#x662F;&#x9274;&#x6743;&#x7684;&#x7EC4;&#x4EF6;&#xFF0C;&#x914D;&#x7F6E;&#x6743;&#x9650;&#x7BA1;&#x7406;&#xFF0C;&#x652F;&#x6301; OAuth&#x3001;SAML&#x3001;LDAP&#x3001;GitHub teams&#x3001;Azure groups&#x3001; Google
</code></pre><hr>
<h3 id="&#x4E8C;&#x3001;&#x642D;&#x5EFA;&#x8FC7;&#x7A0B;">&#x4E8C;&#x3001;&#x642D;&#x5EFA;&#x8FC7;&#x7A0B;</h3>
<p>&#xA0;&#xA0;&#xA0;&#xA0;spinnaker&#x652F;&#x6301;Halyard&#x3001;helm&#x3001;development&#x7B49;&#x591A;&#x79CD;&#x65B9;&#x5F0F;&#x5B89;&#x88C5;&#xFF0C;&#x5728;&#x90E8;&#x7F72;k8s&#x5E73;&#x53F0;&#x65F6;&#xFF0C;&#x8003;&#x8651;&#x5230;helm&#x662F;k8s&#x539F;&#x751F;&#x5305;&#x7BA1;&#x7406;&#x5DE5;&#x5177;&#xFF0C;&#x4E3A;&#x7EDF;&#x4E00;&#x7BA1;&#x7406;&#x5404;&#x79CD;&#x7EC4;&#x4EF6;&#xFF0C;&#x8FD9;&#x91CC;&#x91C7;&#x7528;helm&#x3002;</p>
<ul>
<li>2.1 &#x73AF;&#x5883;&#x51C6;&#x5907;</li>
</ul>
<pre><code>helm:       k8s&#x5305;&#x7BA1;&#x7406;&#x5DE5;&#x5177;
k8s:        k8s&#x96C6;&#x7FA4;&#xFF0C;&#x8FD9;&#x91CC;&#x9009;&#x62E9;&#x963F;&#x91CC;&#x4E91;K8s
Spinnaker:  &#x6301;&#x7EED;&#x4EA4;&#x4ED8;&#x5E73;&#x53F0;
volume:     &#x8FD9;&#x91CC;&#x4E3B;&#x8981;&#x662F;&#x4E3A;&#x4E86;&#x6301;&#x4E45;&#x5316;&#xFF0C;&#x5728;k8s&#x6302;&#x8F7D;&#x7269;&#x7406;&#x78C1;&#x76D8;(pvc)
</code></pre><p>&#x7533;&#x8BF7;pvc:</p>
<pre><code class="lang-yaml"><span class="hljs-attr">apiVersion:</span> v1
<span class="hljs-attr">kind:</span> PersistentVolumeClaim
<span class="hljs-attr">metadata:</span>
<span class="hljs-attr">  annotations:</span>
    kubectl.kubernetes.io/last-applied-configuration: <span class="hljs-string">&gt;
      {&quot;apiVersion&quot;:&quot;v1&quot;,&quot;kind&quot;:&quot;PersistentVolumeClaim&quot;,&quot;metadata&quot;:{&quot;annotations&quot;:{},&quot;name&quot;:&quot;pvc-spero-dev-spinnaker&quot;,&quot;namespace&quot;:&quot;spinnaker&quot;},&quot;spec&quot;:{&quot;accessModes&quot;:[&quot;ReadWriteOnce&quot;],&quot;resources&quot;:{&quot;requests&quot;:{&quot;storage&quot;:&quot;50Gi&quot;}},&quot;storageClassName&quot;:&quot;disk&quot;}}
    pv.kubernetes.io/bind-completed: &apos;yes&apos;
    pv.kubernetes.io/bound-by-controller: &apos;yes&apos;
</span><span class="hljs-attr">  creationTimestamp:</span> <span class="hljs-string">&apos;2018-12-10T04:02:32Z&apos;</span>
<span class="hljs-attr">  finalizers:</span>
<span class="hljs-bullet">    -</span> kubernetes.io/pvc-protection
<span class="hljs-attr">  name:</span> pvc-spero-dev-spinnaker
<span class="hljs-attr">  namespace:</span> spinnaker
<span class="hljs-attr">  resourceVersion:</span> <span class="hljs-string">&apos;23308808&apos;</span>
<span class="hljs-attr">  selfLink:</span> /api/v1/namespaces/spinnaker/persistentvolumeclaims/pvc-spero-dev-spinnaker
<span class="hljs-attr">  uid:</span> <span class="hljs-number">6</span>b7084df-fc30<span class="hljs-bullet">-11e8</span><span class="hljs-bullet">-9</span>b4c<span class="hljs-bullet">-00163e1</span>ad1e1
<span class="hljs-attr">spec:</span>
<span class="hljs-attr">  accessModes:</span>
<span class="hljs-bullet">    -</span> ReadWriteOnce
<span class="hljs-attr">  resources:</span>
<span class="hljs-attr">    requests:</span>
<span class="hljs-attr">      storage:</span> <span class="hljs-number">50</span>Gi
<span class="hljs-attr">  storageClassName:</span> disk
<span class="hljs-attr">  volumeName:</span> d-uf62vt3bzcu916ps5z14
<span class="hljs-attr">status:</span>
<span class="hljs-attr">  accessModes:</span>
<span class="hljs-bullet">    -</span> ReadWriteMany
<span class="hljs-attr">  capacity:</span>
<span class="hljs-attr">    storage:</span> <span class="hljs-number">50</span>Gi
<span class="hljs-attr">  phase:</span> Bound
</code></pre>
<p>&#x67E5;&#x770B;pvc:</p>
<pre><code>master:spero-spinnaker-server dreamboad$ kubectl get pvc
NAME                      STATUS    VOLUME                   CAPACITY   ACCESS MODES   STORAGECLASS   AGE
pvc-spero-dev-spinnaker   Bound     d-uf62vt3bzcu916ps5z14   50Gi       RWX            disk           7d
spero-spinnaker-jenkins   Pending                                                                     2h
</code></pre><p>&#x5B89;&#x88C5;helm(&#x8FD9;&#x91CC;&#x6211;&#x662F;&#x5728;mac&#x73AF;&#x5883;&#x4E0B;)&#xFF1A;</p>
<pre><code class="lang-bash"><span class="hljs-comment"># install helm</span>
brew install kubernetes-helm

<span class="hljs-comment"># check version of helm, should upgrade if Client.version != Server.version</span>
helm version

<span class="hljs-comment"># install server client</span>
helm init

<span class="hljs-comment"># or install only client</span>
helm init --client-only
</code></pre>
<p>&#x9700;&#x8981;&#x6CE8;&#x610F;helm&#x7684;&#x5BA2;&#x6237;&#x7AEF;&#x4E0E;&#x670D;&#x52A1;&#x5668;&#x7248;&#x672C;&#x5FC5;&#x987B;&#x4E00;&#x81F4;&#xFF1A;</p>
<pre><code>master:spero-spinnaker-server dreamboad$ helm version
Client: &amp;version.Version{SemVer:&quot;v2.9.1&quot;, GitCommit:&quot;20adb27c7c5868466912eebdf6664e7390ebe710&quot;, GitTreeState:&quot;clean&quot;}
Server: &amp;version.Version{SemVer:&quot;v2.9.1&quot;, GitCommit:&quot;20adb27c7c5868466912eebdf6664e7390ebe710&quot;, GitTreeState:&quot;clean&quot;}
</code></pre><ul>
<li>2.2 &#x6388;&#x6743;k8s&#x90E8;&#x7F72;Spinnaker</li>
</ul>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#x5728;values.yaml&#x6587;&#x4EF6;&#x4E2D;&#x914D;&#x7F6E;&#x5168;&#x5C40;&#x914D;&#x7F6E;&#x4FE1;&#x606F;&#xFF0C;&#x4E3A;&#x4E86;&#x6F14;&#x793A;&#x65B9;&#x4FBF;&#xFF0C;dockerRegistries&#x4F7F;&#x7528;Docker hub&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x4E3A;&#x79C1;&#x6709;&#x955C;&#x50CF;&#x4ED3;&#x5E93;&#xFF0C;&#x800C;&#x5BF9;&#x8C61;&#x5B58;&#x50A8;&#x5219;&#x91C7;&#x7528;Minio(aws&#x7684;s3&#x5F00;&#x6E90;&#x5B9E;&#x73B0;)&#x3002;</p>
<p>cat values.yaml</p>
<pre><code class="lang-yaml"><span class="hljs-attr">halyard:</span>
<span class="hljs-attr">  spinnakerVersion:</span> <span class="hljs-number">1.6</span><span class="hljs-number">.0</span>
<span class="hljs-attr">  image:</span>
    <span class="hljs-comment"># gcr.io/spinnaker-marketplace/halyard</span>
<span class="hljs-attr">    repository:</span> anjia0532/spinnaker-marketplace.halyard
<span class="hljs-attr">    tag:</span> <span class="hljs-number">1.6</span><span class="hljs-number">.0</span>
  <span class="hljs-comment"># Provide a config map with Hal commands that will be run the core config (storage)</span>
  <span class="hljs-comment"># The config map should contain a script in the config.sh key</span>
<span class="hljs-attr">  additionalScripts:</span>
<span class="hljs-attr">    enabled:</span> <span class="hljs-literal">false</span>
<span class="hljs-attr">    configMapName:</span> my-halyard-config
<span class="hljs-attr">    configMapKey:</span> config.sh
    <span class="hljs-comment"># If you&apos;d rather do an inline script, set create to true and put the content in the data dict like you would a configmap</span>
<span class="hljs-attr">    create:</span> <span class="hljs-literal">false</span>
<span class="hljs-attr">    data:</span> {}
<span class="hljs-attr">  additionalSecrets:</span>
<span class="hljs-attr">    create:</span> <span class="hljs-literal">false</span>
<span class="hljs-attr">    data:</span> {}
<span class="hljs-attr">  additionalConfigMaps:</span>
<span class="hljs-attr">    create:</span> <span class="hljs-literal">false</span>
<span class="hljs-attr">    data:</span> {}

<span class="hljs-comment"># Define which registries and repositories you want available in your</span>
<span class="hljs-comment"># Spinnaker pipeline definitions</span>
<span class="hljs-comment"># For more info visit:</span>
<span class="hljs-comment">#   https://www.spinnaker.io/setup/providers/docker-registry/</span>

<span class="hljs-comment"># Configure your Docker registries here</span>
<span class="hljs-attr">dockerRegistries:</span>
<span class="hljs-attr">- name:</span> dockerhub
<span class="hljs-attr">  address:</span> https://index.docker.io
<span class="hljs-attr">  repositories:</span>
<span class="hljs-bullet">    -</span> library/alpine
<span class="hljs-bullet">    -</span> library/ubuntu
<span class="hljs-bullet">    -</span> library/centos
<span class="hljs-bullet">    -</span> library/nginx
<span class="hljs-comment"># - name: gcr</span>
<span class="hljs-comment">#   address: https://gcr.io</span>
<span class="hljs-comment">#   username: _json_key</span>
<span class="hljs-comment">#   password: &apos;&lt;INSERT YOUR SERVICE ACCOUNT JSON HERE&gt;&apos;</span>
<span class="hljs-comment">#   email: 1234@5678.com</span>

<span class="hljs-comment"># If you don&apos;t want to put your passwords into a values file</span>
<span class="hljs-comment"># you can use a pre-created secret instead of putting passwords</span>
<span class="hljs-comment"># (specify secret name in below `dockerRegistryAccountSecret`)</span>
<span class="hljs-comment"># per account above with data in the format:</span>
<span class="hljs-comment"># &lt;name&gt;: &lt;password&gt;</span>

<span class="hljs-comment"># dockerRegistryAccountSecret: myregistry-secrets</span>

<span class="hljs-attr">kubeConfig:</span>
  <span class="hljs-comment"># Use this when you want to register arbitrary clusters with Spinnaker</span>
  <span class="hljs-comment"># Upload your ~/kube/.config to a secret</span>
<span class="hljs-attr">  enabled:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">  secretName:</span> spinnaker-kubeconfig
<span class="hljs-attr">  secretKey:</span> config
  <span class="hljs-comment"># List of contexts from the kubeconfig to make available to Spinnaker</span>
<span class="hljs-attr">  contexts:</span>
<span class="hljs-bullet">  -</span> spero-spinnaker
<span class="hljs-attr">  deploymentContext:</span> spero-spinnaker

<span class="hljs-comment"># Change this if youd like to expose Spinnaker outside the cluster</span>
<span class="hljs-attr">ingress:</span>
<span class="hljs-attr">  enabled:</span> <span class="hljs-literal">false</span>
  <span class="hljs-comment"># host: spinnaker.example.org</span>
  <span class="hljs-comment"># annotations:</span>
    <span class="hljs-comment"># ingress.kubernetes.io/ssl-redirect: &apos;true&apos;</span>
    <span class="hljs-comment"># kubernetes.io/ingress.class: nginx</span>
    <span class="hljs-comment"># kubernetes.io/tls-acme: &quot;true&quot;</span>
  <span class="hljs-comment"># tls:</span>
  <span class="hljs-comment">#  - secretName: -tls</span>
  <span class="hljs-comment">#    hosts:</span>
  <span class="hljs-comment">#      - domain.com</span>

<span class="hljs-attr">ingressGate:</span>
<span class="hljs-attr">  enabled:</span> <span class="hljs-literal">false</span>
  <span class="hljs-comment"># host: gate.spinnaker.example.org</span>
  <span class="hljs-comment"># annotations:</span>
    <span class="hljs-comment"># ingress.kubernetes.io/ssl-redirect: &apos;true&apos;</span>
    <span class="hljs-comment"># kubernetes.io/ingress.class: nginx</span>
    <span class="hljs-comment"># kubernetes.io/tls-acme: &quot;true&quot;</span>
  <span class="hljs-comment"># tls:</span>
  <span class="hljs-comment">#  - secretName: -tls</span>
  <span class="hljs-comment">#    hosts:</span>
  <span class="hljs-comment">#      - domain.com</span>

<span class="hljs-comment"># spinnakerFeatureFlags is a list of Spinnaker feature flags to enable</span>
<span class="hljs-comment"># Ref: https://www.spinnaker.io/reference/halyard/commands/#hal-config-features-edit</span>
<span class="hljs-comment"># spinnakerFeatureFlags:</span>
<span class="hljs-comment">#   - artifacts</span>
<span class="hljs-comment">#   - pipeline-templates</span>
<span class="hljs-attr">spinnakerFeatureFlags:</span>
<span class="hljs-bullet">  -</span> artifacts
<span class="hljs-bullet">  -</span> jobs

<span class="hljs-comment"># Node labels for pod assignment</span>
<span class="hljs-comment"># Ref: https://kubernetes.io/docs/user-guide/node-selection/</span>
<span class="hljs-comment"># nodeSelector to provide to each of the Spinnaker components</span>
<span class="hljs-attr">nodeSelector:</span> {}

<span class="hljs-comment"># Redis password to use for the in-cluster redis service</span>
<span class="hljs-comment"># Redis is not exposed publically</span>
<span class="hljs-attr">redis:</span>
<span class="hljs-attr">  password:</span> password
<span class="hljs-attr">  nodeSelector:</span> {}
<span class="hljs-attr">  cluster:</span>
<span class="hljs-attr">    enabled:</span> <span class="hljs-literal">false</span>
<span class="hljs-comment"># Uncomment if you don&apos;t want to create a PVC for redis</span>
<span class="hljs-attr">  master:</span>
<span class="hljs-attr">  persistence:</span>
<span class="hljs-attr">    enabled:</span> <span class="hljs-literal">false</span>

<span class="hljs-comment"># Minio access/secret keys for the in-cluster S3 usage</span>
<span class="hljs-comment"># Minio is not exposed publically RELEASE.2018-08-25T01-56-38Z</span>
<span class="hljs-attr">minio:</span>
<span class="hljs-attr">  enabled:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">  imageTag:</span> RELEASE<span class="hljs-number">.2018</span><span class="hljs-bullet">-08</span><span class="hljs-bullet">-25</span>T01<span class="hljs-bullet">-56</span><span class="hljs-bullet">-38</span>Z
<span class="hljs-attr">  serviceType:</span> ClusterIP
<span class="hljs-attr">  accessKey:</span> spinnakeradmin
<span class="hljs-attr">  secretKey:</span> spinnakeradmin
<span class="hljs-attr">  bucket:</span> <span class="hljs-string">&quot;spinnaker&quot;</span>
<span class="hljs-attr">  nodeSelector:</span> {}
<span class="hljs-comment"># Uncomment if you don&apos;t want to create a PVC for minio</span>
<span class="hljs-attr">  persistence:</span>
<span class="hljs-attr">    enabled:</span> <span class="hljs-literal">false</span>


<span class="hljs-comment"># Google Cloud Storage</span>
<span class="hljs-attr">gcs:</span>
<span class="hljs-attr">  enabled:</span> <span class="hljs-literal">false</span>
<span class="hljs-attr">  project:</span> my-project-name
<span class="hljs-attr">  bucket:</span> <span class="hljs-string">&quot;&lt;GCS-BUCKET-NAME&gt;&quot;</span>
<span class="hljs-attr">  jsonKey:</span> <span class="hljs-string">&apos;&lt;INSERT CLOUD STORAGE JSON HERE&gt;&apos;</span>

<span class="hljs-comment"># AWS Simple Storage Service</span>
<span class="hljs-attr">s3:</span>
<span class="hljs-attr">  enabled:</span> <span class="hljs-literal">false</span>
<span class="hljs-attr">  bucket:</span> <span class="hljs-string">&quot;spinnaker&quot;</span>
<span class="hljs-attr">  rootFolder:</span> <span class="hljs-string">&quot;front50&quot;</span>
<span class="hljs-attr">  region:</span> <span class="hljs-string">&quot;us-east-1&quot;</span>
<span class="hljs-attr">  endpoint:</span> <span class="hljs-string">&quot;spero-spinnaker-minio-svc:9000&quot;</span>
<span class="hljs-attr">  accessKey:</span> <span class="hljs-string">&quot;spinnakeradmin&quot;</span>
<span class="hljs-attr">  secretKey:</span> <span class="hljs-string">&quot;spinnakeradmin&quot;</span>

<span class="hljs-comment"># Azure Storage Account</span>
<span class="hljs-attr">azs:</span>
<span class="hljs-attr">  enabled:</span> <span class="hljs-literal">false</span>
<span class="hljs-comment">#   storageAccountName: &quot;&quot;</span>
<span class="hljs-comment">#   accessKey: &quot;&quot;</span>
<span class="hljs-comment">#   containerName: &quot;spinnaker&quot;</span>

<span class="hljs-attr">rbac:</span>
  <span class="hljs-comment"># Specifies whether RBAC resources should be created</span>
<span class="hljs-attr">  create:</span> <span class="hljs-literal">true</span>

<span class="hljs-attr">serviceAccount:</span>
  <span class="hljs-comment"># Specifies whether a ServiceAccount should be created</span>
<span class="hljs-attr">  create:</span> <span class="hljs-literal">true</span>
  <span class="hljs-comment"># The name of the ServiceAccounts to use.</span>
  <span class="hljs-comment"># If left blank it is auto-generated from the fullname of the release</span>
<span class="hljs-attr">  halyardName:</span>
<span class="hljs-attr">  spinnakerName:</span>
</code></pre>
<p>&#x6B64;&#x65F6;&#x6CE8;&#x610F;&#xFF0C;k8s&#x6388;&#x6743;&#x5B89;&#x88C5;spinnaker&#xFF0C;&#x9700;&#x8981;&#x63D0;&#x524D;&#x521B;&#x5EFA;secret&#xFF0C;&#x5BF9;&#x5E94;&#x5982;&#x4E0B;&#x914D;&#x7F6E;kubeConfig&#x4E2D;&#x7684;spinnaker-kubeconfig&#x3002;</p>
<pre><code class="lang-yaml"><span class="hljs-attr">kubeConfig:</span>
  <span class="hljs-comment"># Use this when you want to register arbitrary clusters with Spinnaker</span>
  <span class="hljs-comment"># Upload your ~/kube/.config to a secret</span>
<span class="hljs-attr">  enabled:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">  secretName:</span> spinnaker-kubeconfig
<span class="hljs-attr">  secretKey:</span> config
  <span class="hljs-comment"># List of contexts from the kubeconfig to make available to Spinnaker</span>
<span class="hljs-attr">  contexts:</span>
<span class="hljs-bullet">  -</span> spero-spinnaker
<span class="hljs-attr">  deploymentContext:</span> spero-spinnaker
</code></pre>
<p>&#x6388;&#x6743;&#x5E76;&#x5B89;&#x88C5;Spinnaker&#xFF1A;</p>
<pre><code class="lang-bash"><span class="hljs-comment"># create namespace</span>
kubectl create ns spinnaker

<span class="hljs-comment"># create secret</span>
kubectl create secret generic --from-file=<span class="hljs-variable">$HOME</span>/.kube/config spinnaker-kubeconfig

<span class="hljs-comment"># install spinnaker</span>
helm install -n spero-spinnaker  stable/spinnaker <span class="hljs-_">-f</span> values.yaml --version 0.6.0 --namespace spinnaker

<span class="hljs-comment"># if failed </span>
helm del --purge spero-spinnaker
</code></pre>
<p>&#x5B8C;&#x6210;&#x5B89;&#x88C5;&#x540E;&#x663E;&#x793A;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code>master:spero-spinnaker-server dreamboad$ helm install -n spero-spinnaker  stable/spinnaker -f values.yaml --version 0.6.0  --namespace spinnaker
NAME:   spero-spinnaker
LAST DEPLOYED: Mon Dec 17 17:49:31 2018
NAMESPACE: spinnaker
STATUS: DEPLOYED

RESOURCES:
==&gt; v1/PersistentVolumeClaim
NAME                     STATUS   VOLUME  CAPACITY  ACCESS MODES  STORAGECLASS  AGE
spero-spinnaker-jenkins  Pending  3m

==&gt; v1/Service
NAME                                  TYPE       CLUSTER-IP     EXTERNAL-IP  PORT(S)                      AGE
spero-spinnaker-jenkins-agent         ClusterIP  172.26.0.154   &lt;none&gt;       50000/TCP                    3m
spero-spinnaker-jenkins               ClusterIP  172.26.13.136  &lt;none&gt;       8080/TCP                     3m
spero-spinnaker-minio                 ClusterIP  None           &lt;none&gt;       9000/TCP                     3m
spero-spinnaker-redis                 ClusterIP  172.26.5.87    &lt;none&gt;       6379/TCP                     3m
spero-spinnaker-spinnake-clouddriver  ClusterIP  172.26.6.216   &lt;none&gt;       7002/TCP                     3m
spero-spinnaker-spinnake-deck         ClusterIP  172.26.2.112   &lt;none&gt;       9000/TCP                     3m
spero-spinnaker-spinnake-echo         ClusterIP  172.26.3.137   &lt;none&gt;       8089/TCP                     3m
spero-spinnaker-spinnake-front50      ClusterIP  172.26.4.64    &lt;none&gt;       8080/TCP                     3m
spero-spinnaker-spinnake-gate         ClusterIP  172.26.10.230  &lt;none&gt;       8084/TCP                     3m
spero-spinnaker-spinnake-igor         ClusterIP  172.26.11.225  &lt;none&gt;       8088/TCP,8080/TCP,50000/TCP  3m
spero-spinnaker-spinnake-orca         ClusterIP  172.26.0.37    &lt;none&gt;       8083/TCP                     3m
spero-spinnaker-spinnake-rosco        ClusterIP  172.26.13.9    &lt;none&gt;       8087/TCP                     3m

==&gt; v1beta1/Deployment
NAME                                  DESIRED  CURRENT  UP-TO-DATE  AVAILABLE  AGE
spero-spinnaker-jenkins               1        1        1           1          3m
spero-spinnaker-redis                 1        1        1           1          3m
spero-spinnaker-spinnake-clouddriver  1        2        1           0          3m
spero-spinnaker-spinnake-deck         1        1        1           0          3m
spero-spinnaker-spinnake-echo         1        1        1           0          3m
spero-spinnaker-spinnake-front50      1        1        1           0          3m
spero-spinnaker-spinnake-gate         1        1        1           0          3m
spero-spinnaker-spinnake-igor         1        1        1           0          3m
spero-spinnaker-spinnake-orca         1        1        1           0          3m
spero-spinnaker-spinnake-rosco        1        1        1           0          3m

==&gt; v1beta2/Deployment
spero-spinnaker-minio  1  1  1  1  3m

==&gt; v1/Pod(related)
NAME                                                   READY  STATUS             RESTARTS  AGE
spero-spinnaker-jenkins-6f979f847b-cqc5h               1/1    Running            0         2m
spero-spinnaker-minio-7fbf7fdb8c-tjg96                 1/1    Running            0         3m
spero-spinnaker-redis-685c7466cb-zwr4p                 1/1    Running            0         3m
spero-spinnaker-spinnake-clouddriver-65b5d94965-wgmp2  0/1    ImagePullBackOff   0         3m
spero-spinnaker-spinnake-clouddriver-77c475b5f7-5nt6v  0/1    ContainerCreating  0         7s
spero-spinnaker-spinnake-deck-777bd8bc54-d7gsj         0/1    ErrImagePull       0         3m
spero-spinnaker-spinnake-echo-b8fdfd9c-schrk           0/1    ImagePullBackOff   0         3m
spero-spinnaker-spinnake-front50-56f4968d54-48gfq      0/1    ImagePullBackOff   0         3m
spero-spinnaker-spinnake-gate-85b6d79d9c-lnz67         0/1    ImagePullBackOff   0         3m
spero-spinnaker-spinnake-igor-5478c66ddd-mhjzw         0/1    ErrImagePull       0         3m
spero-spinnaker-spinnake-orca-69cfb69758-gltfc         0/1    ErrImagePull       0         3m
spero-spinnaker-spinnake-rosco-bcf796f9b-l2ncp         0/1    ImagePullBackOff   0         3m

==&gt; v1/Secret
NAME                               TYPE    DATA  AGE
spero-spinnaker-jenkins            Opaque  2     3m
spero-spinnaker-minio              Opaque  2     3m
spero-spinnaker-redis              Opaque  1     3m
spero-spinnaker-spinnake-registry  Opaque  1     3m

==&gt; v1/ConfigMap
NAME                                       DATA  AGE
spero-spinnaker-jenkins                    3     3m
spero-spinnaker-jenkins-tests              1     3m
spero-spinnaker-minio                      1     3m
spero-spinnaker-jenkins-jobs               3     3m
spero-spinnaker-spinnake-s3-config         1     3m
spero-spinnaker-spinnake-spinnaker-config  18    3m
spero-spinnaker-spinnake-tests             1     3m


NOTES:
1. You will need to create 2 port forwarding tunnels in order to access the Spinnaker UI:
  export DECK_POD=$(kubectl get pods --namespace spinnaker -l &quot;component=deck,app=spero-spinnaker-spinnake&quot; -o jsonpath=&quot;{.items[0].metadata.name}&quot;)
  kubectl port-forward --namespace spinnaker $DECK_POD 9000

2. Visit the Spinnaker UI by opening your browser to: http://127.0.0.1:9000

For more info on the Kubernetes integration for Spinnaker, visit:
  http://www.spinnaker.io/docs/kubernetes-source-to-prod
</code></pre><p>&#x6B64;&#x65F6;&#x4F1A;&#x53D1;&#x73B0;&#x4EE5;&#x4E0B;&#x955C;&#x50CF;&#x65E0;&#x6CD5;&#x4E0B;&#x8F7D;&#xFF0C;&#x8FD9;&#x91CC;&#x4F9D;&#x6B21;&#x66FF;&#x6362;&#x4E3A;:</p>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x793A;&#x4F8B;</span>
kubectl edit deployment spero-spinnaker-spinnake-clouddriver
</code></pre>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x66FF;&#x6362;&#x524D;</span>
gcr.io/spinnaker-marketplace/clouddriver:2.0.0-20180221152902
gcr.io/spinnaker-marketplace/clouddriver:2.0.0-20180221152902
gcr.io/spinnaker-marketplace/deck:2.1.0-20180221143146
gcr.io/spinnaker-marketplace/<span class="hljs-built_in">echo</span>:0.8.0-20180221133510
gcr.io/spinnaker-marketplace/front50:0.9.0-20180221133510
gcr.io/spinnaker-marketplace/gate:0.10.0-20180221133510
gcr.io/spinnaker-marketplace/igor:0.9.0-20180221133510
gcr.io/spinnaker-marketplace/rosco:0.5.0-20180221133510
gcr.io/spinnaker-marketplace/rosco:0.5.0-20180221133510

<span class="hljs-comment"># &#x66FF;&#x6362;&#x540E;</span>
gcrxio/clouddriver:2.0.0-20180221152902
gcrxio/deck:2.1.0-20180221143146
gcrxio/<span class="hljs-built_in">echo</span>:0.8.0-20180221133510
gcrxio/front50:0.9.0-20180221133510
gcrxio/gate:0.10.0-20180221133510
gcrxio/igor:0.9.0-20180221133510
gcrxio/rosco:0.5.0-20180221133510
gcrxio/rosco:0.5.0-20180221133510
</code></pre>
<p>&#x518D;&#x6B21;&#x67E5;&#x770B;&#x6240;&#x6709;pod&#xFF0C;&#x5DF2;&#x7ECF;&#x5168;&#x90E8;&#x5B89;&#x88C5;&#x6210;&#x529F;:</p>
<pre><code class="lang-bash">master:spero-spinnaker-server dreamboad$ kubectl get po
NAME                                                    READY     STATUS      RESTARTS   AGE
spero-spinnaker-create-bucket-n5s7m                     0/1       Completed   0          2h
spero-spinnaker-jenkins-6f979f847b-cqc5h                1/1       Running     0          2h
spero-spinnaker-minio-7fbf7fdb8c-tjg96                  1/1       Running     0          2h
spero-spinnaker-redis-685c7466cb-zwr4p                  1/1       Running     0          2h
spero-spinnaker-spinnake-clouddriver-84d6d9dd7f<span class="hljs-_">-d</span>6xs2   1/1       Running     0          1h
spero-spinnaker-spinnake-deck-8b7c5556d-jd7k2           1/1       Running     0          1h
spero-spinnaker-spinnake-echo-6844fbfff-z6lw4           1/1       Running     0          1h
spero-spinnaker-spinnake-front50-b8bb546d4-5cbpj        1/1       Running     0          1h
spero-spinnaker-spinnake-gate-685b6f89c5-kml97          1/1       Running     0          1h
spero-spinnaker-spinnake-igor-66fbd7<span class="hljs-built_in">cd</span>74-947c5          1/1       Running     0          1h
spero-spinnaker-spinnake-orca-7bdfb4746d-7l6k7          1/1       Running     0          1h
spero-spinnaker-spinnake-rosco-78df67968b-vdx68         1/1       Running     0          1h
spero-spinnaker-upload-build-image-cczm5                0/1       Completed   0          2h
spero-spinnaker-upload-run-pipeline-75k7q               0/1       Completed   0          2h
spero-spinnaker-upload-run-script-mkdfm                 0/1       Completed   0          2h
</code></pre>
<ul>
<li>2.3 &#x901A;&#x8FC7;Deck UI &#x67E5;&#x770B;Spinnaker</li>
</ul>
<pre><code>export DECK_POD=$(kubectl get pods --namespace spinnaker -l &quot;component=deck,app=spero-spinnaker-spinnake&quot; -o jsonpath=&quot;{.items[0].metadata.name}&quot;)

kubectl port-forward --namespace spinnaker $DECK_POD 9000
</code></pre><p>&#x6D4F;&#x89C8;&#x5668;&#x6253;&#x5F00; <code>http://localhost:9000/#/applications</code>
<img src="http://cdn.find-world.top/spinnaker-2.png" alt="CI&#x56FE;"></p>
<p>&#x6982;&#x89C8;
<img src="http://cdn.find-world.top/spinnaker-3.png" alt="CI&#x56FE;"></p>
<p>&#x521B;&#x5EFA;Application:
<img src="http://cdn.find-world.top/spinnaker-5.png" alt="CI&#x56FE;"></p>
<p>&#x6DFB;&#x52A0;Cluster:
<img src="http://cdn.find-world.top/spinnaker-7.png" alt="CI&#x56FE;"></p>
<p>&#x521B;&#x5EFA;Server Group:
<img src="http://cdn.find-world.top/spinnaker-4.png" alt="CI&#x56FE;"></p>
<p>&#x521B;&#x5EFA;Load Balancer:
<img src="http://cdn.find-world.top/spinnaker-6.png" alt="CI&#x56FE;"></p>
<p>&#x521B;&#x5EFA;security groups:
<img src="http://cdn.find-world.top/spinnaker-8.png" alt="CI&#x56FE;"></p>
<p>&#x521B;&#x5EFA;pipeline:
<img src="http://cdn.find-world.top/spinnaker-9.png" alt="CI&#x56FE;"></p>
<p>&#x6CE8;:</p>
<pre><code>Application:
&#x96C6;&#x7FA4;&#x4E2D;&#x4E00;&#x7EC4;&#x7684;cluster&#x7684;&#x96C6;&#x5408;&#xFF0C;&#x5305;&#x62EC;&#x4E86;security groups &#x4E0E; load balancers&#xFF0C;&#x5B58;&#x50A8;&#x4E86;&#x670D;&#x52A1;&#x6240;&#x6709;&#x7684;&#x90E8;&#x7F72;&#x76F8;&#x5173;&#x7684;&#x7684;&#x4FE1;&#x606F;

Server Group:
&#x57FA;&#x7840;&#x6E90;,&#x6BD4;&#x5982;Docker image,&#x4EE5;&#x53CA;&#x4E00;&#x4E9B;&#x57FA;&#x7840;&#x7684;&#x914D;&#x7F6E;&#x4FE1;&#x606F;&#xFF0C;&#x90E8;&#x7F72;&#x540E;&#x5BF9;&#x5E94;Kubernetes pods&#x7684;&#x96C6;&#x5408;

Cluster:
&#x4E0E;Server Groups&#x6709;&#x5173;&#x8054;&#x7684;&#x96C6;&#x5408;&#xFF0C;&#x53EF;&#x4EE5;&#x7406;&#x89E3;&#x4E3A;&#x5BF9;&#x4E8E;&#x4E00;&#x4E2A;&#x5E94;&#x7528;&#x5B58;&#x5728;&#x591A;&#x4E2A;&#x5206;&#x652F;&#xFF0C;&#x5982;&#x6309;&#x7167;dev&#xFF0C;prod&#x53BB;&#x521B;&#x5EFA;&#x4E0D;&#x540C;&#x7684;&#x670D;&#x52A1;&#x7EC4;&#x3002;

Load Balancer:
&#x5B9E;&#x4F8B;&#x4E4B;&#x95F4;&#x505A;&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#x3002;&#x53EF;&#x4EE5;&#x7075;&#x6D3B;&#x5730;&#x5B9A;&#x4E49;&#x5065;&#x5EB7;&#x6807;&#x51C6;&#x5E76;&#x6307;&#x5B9A;&#x5065;&#x5EB7;&#x68C0;&#x67E5;&#x7AEF;&#x70B9;&#xFF0C;&#x7C7B;&#x4F3C;&#x4E8E;kubernetes&#x4E2D;ingress&#x6216;service

security groups:
&#x5B9A;&#x4E49;&#x4E86;&#x4E00;&#x4E9B;&#x8BBF;&#x95EE;&#x7684;&#x89C4;&#x5219;&#xFF0C;&#x5982;&#x5B89;&#x5168;&#x7EC4;

Pipeline:
spinnaker&#x7684;&#x6838;&#x5FC3;&#xFF0C;&#x5B83;&#x7684;Pipeline&#x96C6;&#x6210;&#x5EA6;&#x53EF;&#x4EE5;&#x975E;&#x5E38;&#x590D;&#x6742;&#xFF0C;&#x6709;&#x5F88;&#x5F3A;&#x7684;&#x8868;&#x8FBE;&#x80FD;&#x529B;&#xFF0C;&#x89E6;&#x53D1;&#x7684;&#x65B9;&#x5F0F;&#x5305;&#x62EC;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;&#x3001;&#x4EBA;&#x5DE5;&#x89E6;
&#x53D1;&#x3001;jenkinsjob&#x3001;gitlab/github&#x3001;docker images&#xFF0C;&#x901A;&#x77E5;&#x65B9;&#x5F0F;&#x652F;&#x6301;email, SMS&#x7B49;&#xFF0C;&#x51E0;&#x4E4E;&#x6240;&#x6709;&#x7684;&#x64CD;&#x4F5C;&#x53EF;&#x4EE5;&#x90FD;
&#x878D;&#x5408;&#x5230;pipeline&#x4E2D;&#xFF0C;&#x6BD4;&#x5982;&#x56DE;&#x6EDA;&#x3001;&#x91D1;&#x4E1D;&#x96C0;&#x5206;&#x6790;&#x7B49;&#x3002;
</code></pre><ul>
<li>2.4 &#x5220;&#x9664;Spinnaker</li>
</ul>
<pre><code># &#x67E5;&#x770B;&#x5DF2;&#x90E8;&#x7F72;
helm list

# &#x5220;&#x9664;&#x5DF2;&#x90E8;&#x7F72;
helm del --purge spero-spinnaker

# &#x6216;&#x8005;&#x53EA;&#x5220;&#x9664;&#x5355;&#x4E2A;pod
kubectl delete pod pod-name --grace-period 0 --force
</code></pre><ul>
<li>2.5 &#x603B;&#x7ED3;</li>
</ul>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#x4ECE;Spinnaker&#x7684;&#x7EC4;&#x4EF6;&#x53CA;&#x6D41;&#x7A0B;&#x53EF;&#x4EE5;&#x770B;&#x51FA;&#x76F8;&#x6BD4;jenkins&#x3001;gitlab-ci&#x7B49;&#x4F20;&#x7EDF;CI&#x5DE5;&#x5177;&#xFF0C;&#x5176;&#x652F;&#x6301;UI&#x67E5;&#x770B;&#x53CA;API&#x8C03;&#x7528;&#x7B49;&#xFF0C;&#x529F;&#x80FD;&#x66F4;&#x52A0;&#x5F3A;&#x5927;&#xFF0C;&#x6709;&#x5F88;&#x591A;&#x503C;&#x5F97;&#x501F;&#x9274;&#x7684;&#x601D;&#x60F3;&#xFF0C;&#x540C;&#x65F6;&#x4E5F;&#x53EF;&#x4EE5;&#x770B;&#x51FA;&#xFF0C;Netflix&#x4F5C;&#x4E3A;&#x5FAE;&#x670D;&#x52A1;&#x53CA;Devops&#x5B9E;&#x8DF5;&#x65B9;&#x9762;&#x7684;&#x9886;&#x5BFC;&#x8005;&#xFF0C;&#x65E0;&#x8BBA;&#x662F;Spinnaker&#x3001;Spring Cloud&#x7B49;&#x90FD;&#x80FD;&#x63D0;&#x4F9B;&#x5F88;&#x597D;&#x7684;&#x4E91;&#x539F;&#x751F;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#x3002;</p>
<h3 id="&#x4E09;&#x3001;&#x53C2;&#x8003;">&#x4E09;&#x3001;&#x53C2;&#x8003;</h3>
<ul>
<li><a href="https://github.com/helm/charts/blob/master/README.md" target="_blank">1&#x3001;helm</a></li>
<li><a href="https://www.spinnaker.io/setup/" target="_blank">2&#x3001;spinnaker</a></li>
<li><a href="https://github.com/helm/charts/tree/master/stable/spinnaker" target="_blank">3&#x3001;helm spinnaker</a> </li>
</ul>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; &#x4E00;&#x84D1;&#x70DF;&#x96E8;&#x4EFB;&#x5E73;&#x751F; all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x4FEE;&#x6539;&#x65F6;&#x95F4;: 
2021-04-09 11:09:03
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="gitlab_ci.html" class="navigation navigation-prev " aria-label="Previous page: 3.2.1 GitLab CI">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../build.html" class="navigation navigation-next " aria-label="Next page: 3.3 部署">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"3.2.2 Spinnaker","level":"1.4.2.2","depth":3,"next":{"title":"3.3 部署","level":"1.4.3","depth":2,"path":"engineering/ci_deplopment/build.md","ref":"engineering/ci_deplopment/build.md","articles":[{"title":"3.3.1 k8s","level":"1.4.3.1","depth":3,"path":"engineering/ci_deplopment/k8s/k8s.md","ref":"engineering/ci_deplopment/k8s/k8s.md","articles":[]},{"title":"3.3.2 rancher","level":"1.4.3.2","depth":3,"path":"engineering/ci_deplopment/rancher/rancher.md","ref":"engineering/ci_deplopment/rancher/rancher.md","articles":[]},{"title":"3.3.3 swarm","level":"1.4.3.3","depth":3,"path":"engineering/ci_deplopment/swarm/swarm.md","ref":"engineering/ci_deplopment/swarm/swarm.md","articles":[]}]},"previous":{"title":"3.2.1 GitLab CI","level":"1.4.2.1","depth":3,"path":"engineering/ci_deplopment/ci/gitlab_ci.md","ref":"engineering/ci_deplopment/ci/gitlab_ci.md","articles":[]},"dir":"ltr"},"config":{"plugins":["disqus","tree","splitter","local-video","chart","github-buttons","tbfed-pagefooter","ace","katex"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy 一蓑烟雨任平生","modify_label":"修改时间: ","modify_format":"YYYY-MM-DD HH:mm:ss"},"disqus":{"useIdentifier":false,"shortName":"gitbookuse"},"ace":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"katex":{},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"github-buttons":{"repo":"TIME-GATE/","types":["star","watch"],"size":"large"},"local-video":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"tree":{},"chart":{"type":"c3"}},"theme":"default","author":"zq_sdk@163.com","name":"name","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Ebook","language":"zh-hans","gitbook":"*","description":"电子书"},"file":{"path":"engineering/ci_deplopment/ci/spinnaker.md","mtime":"2021-04-09T03:09:03.299Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-04-10T12:23:44.633Z"},"basePath":"../../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../../gitbook/gitbook.js"></script>
    <script src="../../../gitbook/theme.js"></script>
    
        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.16.1/URI.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-disqus/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-tree/jquery.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-tree/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-local-video/video.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-ace/ace/ace.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-ace/ace.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

